@charset "utf-8";
@import "common/reset";
@import "common/util";
@function p($px) {
    @return $px/2*1px;
}

@mixin transf {
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    -moz-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
}

//主体
section {
    //  padding-top: p(140);
    //  padding-bottom: p(146);
    position: absolute;
    top: p(140);
    bottom: p(144);
    width: 100%;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

section {
    
    width: 100%;
    position: absolute;
    top: p(140);
    bottom: p(146);
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    margin-top: p(10);
    //轮播
    .kv {
        width: 100%;
        height: p(287);
        overflow: hidden;
        position: relative;
        .swiper-container {
            width: 100%;
            height: p(287);
            .swiper-wrapper {
                width: 100%;
                height: p(287);
                .swiper-slide {
                    width: 100%;
                    height: p(287);
                    img {
                        width: 100%;
                        @include transf;
                    }
                }
            }
        }
    } 
    //更多优惠
    .grouP {
        //优惠团购
        .discountInfo {
            overflow: hidden;
            >li {
                width: 50%;
                height: p(93);
                overflow: hidden;
                font-size: 0;
                float: left;
                text-align: center;
                margin: p(15) 0;
                a {
                    width: p(240);
                    height: p(93);
                    overflow: hidden;
                    position: relative;
                    display: inline-block;
                    img {
                        width: 100%;
                    }
                }
            }
        }
    } //猜你喜欢
    .like {
        padding: 0 p(21);
        li {
            margin-top: p(30);
            overflow: hidden;
            .goodsImg {
                a {
                    display: inline-block;
                    width: p(210);
                    height: p(164);
                    overflow: hidden;
                    position: relative;
                    img {
                        width: 100%;
                        @include transf;
                    }
                }
            }
            .goodsInfo {
                padding-left: p(231);
                width: 100%;
                box-sizing: border-box;
                h3 {
                    margin-top: p(29);
                    overflow: hidden;
                    line-height: p(30);
                    span:first-child {
                        font-size: p(30);
                        font-weight: bold;
                    }
                    span:last-child {
                        font-size: p(22);
                        float: right;
                        margin-top: p(4);
                        font-weight: normal;
                        vertical-align: m;
                    }
                }
                .taocan {
                    line-height: p(22);
                    font-size: p(22);
                    margin-top: p(19);
                    margin-bottom: p(22);
                    color: #494949;
                }
                p:last-of-type {
                    height: p(32);
                    span:first-child {
                        font-size: p(32);
                        line-height: p(32);
                        color: $orange;
                    }
                    span:last-child {
                        font-size: p(22);
                        color: #494949;
                        float: right;
                        margin-top: p(5);
                    }
                }
            }
        }
    }
}